<?php

namespace Admin\Entity;

class Book {

    public $bookBarcode;
    public $title;
    public $numberOfPages;
    public $publisher;
    public $yearOfPublish;
    public $totalNumber;
    public $price;
    public $createdTime;
    public $paperSize;
    public $location;
    public $bookDescription;
    public $usedAs;
    public $languageID;
    public $bookTypeID;
    public $bookCategoryID;
    public $personCreated;

    public function getBookBarcode() {
        return $this->bookBarcode;
    }

    public function setBookBarcode($bookBarcode) {
        $this->bookBarcode = $bookBarcode;
    }

    public function getTitle() {
        return $this->title;
    }

    public function setTitle($title) {
        $this->title = $title;
    }

    public function getNumberOfPages() {
        return $this->numberOfPage;
    }

    public function setNumberOfPages($numberOfPage) {
        $this->numberOfPage = $numberOfPage;
    }

    public function getPublisher() {
        return $this->publisher;
    }

    public function setPublisher($publisher) {
        $this->publisher = $publisher;
    }

    public function getYearOfPublish() {
        return $this->yearOfPublish;
    }

    public function setYearOfPublish($yearOfPublish) {
        $this->yearOfPublish = $yearOfPublish;
    }

    public function getTotalNumber() {
        return $this->totalNumber;
    }

    public function setTotalNumber($totalNumber) {
        $this->totalNumber = $totalNumber;
    }

    public function getPrice() {
        return $this->price;
    }

    public function setPrice($price) {
        $this->price = $price;
    }

    public function getPaperSize() {
        return $this->paperSize;
    }

    public function setPaperSize($paperSize) {
        $this->paperSize = $paperSize;
    }

    public function getLocation() {
        return $this->location;
    }

    public function setLocation($location) {
        $this->location = $location;
    }

    public function getBookDescription() {
        return $this->bookDescription;
    }

    public function setBookDescription($bookDescription) {
        $this->bookDescription = $bookDescription;
    }

    public function getUsedAs() {
        return $this->usedAs;
    }

    public function setUsedAs($usedAs) {
        $this->usedAs = $usedAs;
    }

    public function getLanguageID() {
        return $this->languageID;
    }

    public function setLanguageID($languageID) {
        $this->languageID = $languageID;
    }

    public function getBookTypeID() {
        return $this->bookTypeID;
    }

    public function setBookTypeID($bookTypeID) {
        $this->bookTypeID = $bookTypeID;
    }

    public function getBookCategoryID() {
        return $this->bookCategoryID;
    }

    public function setBookCategoryID($bookCategoryID) {
        $this->bookCategoryID = $bookCategoryID;
    }

    public function getCreatedTime() {
        return $this->createdTime;
    }

    public function setCreatedTime($createdTime) {
        $this->createdTime = $createdTime;
    }

    public function getPersonCreated() {
        return $this->personCreated;
    }

    public function setPersonCreated($personCreated) {
        $this->personCreated = $personCreated;
    }

    public function setDataCataloging($data) {
        $this->bookBarcode = (isset($data['bookBarcode'])) ? $data['bookBarcode'] : null;
        $this->title = (isset($data['title'])) ? $data['title'] : null;
        $this->numberOfPages = (isset($data['numberOfPages'])) ? $data['numberOfPages'] : null;
        $this->publisher = (isset($data['publisher'])) ? $data['publisher'] : null;
        $this->yearOfPublish = (isset($data['yearOfPublish'])) ? $data['yearOfPublish'] : null;
        $this->totalNumber = (isset($data['totalNumber'])) ? $data['totalNumber'] : null;
        $this->price = (isset($data['price'])) ? $data['price'] : null;
        $this->createdTime = (isset($data['createdTime'])) ? $data['createdTime'] : null;
        $this->paperSize = (isset($data['paperSize'])) ? $data['paperSize'] : null;
        $this->personCreated = (isset($data['personCreated'])) ? $data['personCreated'] : null;     
        $this->location = (isset($data['location'])) ? $data['location'] : null;
        $this->bookDescription = (isset($data['bookDescription'])) ? $data['bookDescription'] : null;
        $this->usedAs = (isset($data['usedAs'])) ? $data['usedAs'] : null;
        $this->languageID = (isset($data['languageID'])) ? $data['languageID'] : null;
        $this->bookTypeID = (isset($data['bookTypeID'])) ? $data['bookTypeID'] : null;
        $this->bookCategoryID= (isset($data['bookCategoryID'])) ? $data['bookCategoryID'] : null;
    }

    public function getArrayCopy() {
        return get_object_vars($this);
    }

}

?>
